                                             
/*
 * OrderLineBO.java
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 *
 */

//package edu.byu.isys413.pb88.data;
package finalintex2web;
/**
 *
 * @author Prabol Bhandari
 */
public class OrderLineBO
{
    
    private String olguid;
    private PurchaseOrderBO order;
    //private VendorItemBO vendoritem;
    private ConceptualProductBO conceptual;
    private int quantity;
    private boolean dirty = false;
    private boolean alreadyInDB = false;
    
    /** Creates a new instance of OrderLineBO */
    public OrderLineBO(String id) {
        this.olguid = id;
    }
    
    public String getOlguid()
    {
        return olguid;
    }
    
    public PurchaseOrderBO getPurchaseOrder() {
        return order;
    }
    
    public void setPurchaseOrder(PurchaseOrderBO order) {
        this.order = order;
    }
    
    public ConceptualProductBO getConceptual() {
        return conceptual;
    }
    
    public void setConceptual(ConceptualProductBO conceptual) {
        this.conceptual = conceptual;
        this.setDirty(true);
    }
    
    public int getQuantity() {
        return quantity;
    }
    
    public void setQuantity(int quantity) {
        this.quantity = quantity;
        this.setDirty(true);
    }

    public boolean isDirty() {
        return dirty;
    }

    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }

    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
}